home *** CD-ROM | disk | FTP | other *** search
/ PC Home 109 / PC Home 109.iso / data1.cab / Program_Files / be006.dxr / 00038.ls < prev    next >
Encoding:
Text File  |  2001-03-02  |  485 b   |  17 lines

  1. on exitFrame
  2.   set OriginalTick to the ticks
  3.   set xStart to the locH of sprite 14
  4.   set yStart to the locV of sprite 14
  5.   repeat while (the locH of sprite 14 > 366) and (the locV of sprite 14 < 369)
  6.     set x to integer(1.81999999999999984 * float(the ticks - OriginalTick))
  7.     set y to integer(1.5 * float(the ticks - OriginalTick))
  8.     set the locH of sprite 14 to xStart - x
  9.     set the locV of sprite 14 to yStart + y
  10.     updateStage()
  11.   end repeat
  12. end
  13.  
  14. on mouseUp
  15.   go(100)
  16. end
  17.